package com.wzk.travelspringboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzk.travelspringboot.dto.Result;
import com.wzk.travelspringboot.entity.Blog;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: WangZiKang
 * @Date: 2025/1/15 21:08
 */
public interface BlogService extends IService<Blog> {

    //发布动态
    Result publishBlog(long userId,String content, MultipartFile[] files);

    //查询所有动态先按照时间排序 再按照点赞量排序
    Result queryAllBlog();

    Result isLikedBlog(long blogId, long userId);

    Result queryBlogByUserId(Long id);

    Result delByBlogId(Long id);
}
